(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <exec/memory.h>
#include <proto/exec.h>
APTR CreatePool()
SYNOPSIS
ULONG requirements
ULONG puddleSize
ULONG threshSize

LOCATION
In SysBase at offset 116
FUNCTION
Create a private pool for memory allocations.

INPUTS
requirements
The type of the memory
puddleSize
The number of bytes that the pool expands if it is too small.
threshSize
Allocations beyond the threshSize are given directly to the system. threshSize must be smaller than the puddleSize.
RESULT
A handle for the memory pool or NULL if the pool couldn't be created

NOTES
EXAMPLE
\* Get the handle to a private memory pool *\
po=CreatePool(MEMF_ANY,16384,8192);
if(po!=NULL)
{
    \* Use the pool *\
    UBYTE *mem1,*mem2;
    mem1=AllocPooled(po,1000);
    mem2=AllocPooled(po,2000);
    \* Do something with the memory... *\

    \* Free everything at once *\
    DeletePool(po);
}

BUGS
SEE ALSO
DeletePool(), AllocPooled(), FreePooled()
INTERNALS
HISTORY
11.06.1997 aros
Removed a few include files that were in there twice
12.05.1997 aros
Fixed all headers
07.01.1997 digulla
There are no pragmas for amiga.lib
01.01.1997 ldp
Committed Amiga native (support) code

Changed clib to proto

10.12.1996 aros
Moved all #include's in the first column so makedepend can see it.
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
19.10.1996 aros
Include <aros/machine.h> over "machine.h" Fixed a type in the docs
13.08.1996 digulla
Replaced __AROS_LA by __AROS_LHA Replaced some __AROS_LH*I by __AROS_LH* Sorted and added includes
01.08.1996 digulla
Added standard header for all files
01.08.1996 digulla
Added copyright notics and made headers conform
28.07.1996 digulla
Initial revision
28.07.1996 digulla
First CVS version of AROS